<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>

<table style="background-color:#ffbf40; background-image: url(<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/topbg.gif); background-position: left top; background-repeat: repeat-x;" width="700" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td style="height: 70px; width:178px; overflow:hidden; border:0; padding:0; margin:0;">
			<a href="<?php echo $link['home']; ?>" target="_blank" style="outline:none; padding:0; margin:0;">	
				<img alt="" src="<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/admarket.gif" style="margin:0; padding:0; border:0; outline:none; width: 178px; height: 70px; display:block;"/>
			</a>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 522px; overflow:hidden;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 6px; margin:0; line-height:1.5; color: #ffffff;">&nbsp;
				
			</p>
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin:0; line-height:1.5; color: #ffffff;">
				<?php echo $common_lang['address']; ?>
			</p>
			
			<table width="522" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td style="vertical-align:top; padding:0; margin:0; border:0; width: 460px;">
						<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin:0; line-height:1.5; color: #ffffff;">
							<?php echo $common_lang['phone']; ?>
						</p>
						<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 12px; margin:0; line-height:1.5; color: #ffffff;">
							<b>Email:</b> <a style="text-decoration: none !important; color: #fff !important;" href="mailto:<?php echo $common_lang['email']; ?>"><span style="color: #ffffff !important;"><?php echo $common_lang['email']; ?></span></a>
						</p>
					</td>
					<td style="vertical-align:top; padding:0; margin:0; border:0;">
						<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 8px; margin:0; line-height:1.5; color: #ffffff;">&nbsp;
							
						</p>
						<a href="<?php echo $common_lang['face_link']; ?>" target="_blank" style="outline:none; padding:0; margin:0; text-decoration:none;">
							<img alt="" src="<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/facebook.gif" style="margin:0; padding:0; border:0; outline:none; height:19px; width:24px;"/>
						</a>
						<a href="<?php echo $common_lang['twitter_link']; ?>" target="_blank" style="outline:none; padding:0; margin:0; text-decoration:none;">
							<img alt="" src="<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/twitter.gif" style="margin:0; padding:0; border:0; outline:none; height:19px; width:24px;"/>
						</a>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<table style="background-color:#fff; margin:0; padding:0;" width="700" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 7px; overflow:hidden;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 3px; margin:0; line-height:1.5; color: #ffffff; overflow:hidden;">&nbsp;</p>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#ececec; background-image:url(<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/leftbg.gif); background-position: left top; background-repeat: repeat-y;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #fcb220; overflow:hidden; height: 27px; width: 5px; background-color:#fcb220;">&nbsp;</p>
		</td>
		<td style="vertical-align: top; width: 683px; overflow:hidden; border:0; margin:0; padding: 0;">
			<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 10px; margin:0; line-height:1.8; color: #333333;">&nbsp;</p>
			<table width="683" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td style="width: 20px; overflow: hidden; padding: 0; margin: 0;" width="20">&nbsp;</td>
					<td style="width: 643px; overflow: hidden; padding: 0; margin: 0;" width="643">
						<div style="margin:0; text-align: left; width: 643px; overflow:hidden;">
							<table width="643" cellpadding="0" cellspacing="0" border="0" style="background:#ffffff url(<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/titlebg.gif) repeat-x left top;">
								<tr>
									<td style="vertical-align:top; border:0; margin:0; padding:0; width: 643px; overflow:hidden;">
										<p style="padding:0;margin:0; text-align:left; font-family: 'Times New Roman', Times, serif; margin:0; line-height:1.8; color: #111111; overflow:hidden; background:#ffffff; font-size: 14px; font-weight:bold; float:left;">
							<?php echo $subject;?>&nbsp;
										</p>
									</td>
								</tr>
							</table>
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 4px; margin:0; line-height:1.8; color: #333333;">&nbsp;</p>
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 14px; margin:0; line-height:1.8; color: #333333;">
							<?php echo $body;?>
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 4px; margin:0; line-height:1.8; color: #333333;">&nbsp;</p>
							<?php if($create==true){?>
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 14px; margin:0; line-height:1.8; color: #333333;">
								<?php echo $email_lang['admarket_will_check_soon'];?>
							</p>
							<?php }?>
							
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 14px; margin:0; line-height:1.8; color: #333333; font-style:italic;">
								<?php echo $common_lang['slogan']; ?>
							</p>
							<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 4px; margin:0; line-height:1.8; color: #333333;">&nbsp;</p>
							<table width="643" cellpadding="0" cellspacing="0" border="0">
								<tr>
									<td style="vertical-align:top; border:0; margin:0; padding:0; width: 558px; overflow:hidden;">
										<p style="padding:0;margin:0; text-align:left; font-family:'Times New Roman', Times, serif; font-size: 14px; margin:0; line-height:1.8; color: #111111; font-weight:bold;">
											<?php echo $common_lang['regards']; ?>
										</p>
									</td>
									<td style="vertical-align:top; border:0; margin:0; padding:0; width: 85px; overflow:hidden;">
										<a href="<?php echo $link['login']; ?>" target="_blank" style="outline:none; padding:0; margin:0; text-decoration:none; display:block;">
											<img alt="" src="<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/dang_nhap.gif" style="margin:0; padding:0; border:0; outline:none; height:34px; width:85px;"/>
										</a>
									</td>
								</tr>
							</table>
						</div>
					</td>
					<td style="width: 20px; overflow: hidden; padding: 0; margin: 0;" width="20">&nbsp;</td>
				</tr>
			</table>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#ececec; background-image:url(<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/rightbg.gif); background-position: left top; background-repeat: repeat-y;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #fcb220; overflow:hidden; height: 27px; width: 5px; background-color:#fcb220;">&nbsp;</p>
		</td>
	</tr>
</table>
<table style="background-color:#fff; margin:0; padding:0;" width="700" cellpadding="0" cellspacing="0" border="0">
	<tr>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 7px; overflow:hidden;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 3px; margin:0; line-height:1.5; color: #ffffff; overflow:hidden">&nbsp;</p>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#d6d6d6;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #d6d6d6; overflow:hidden; height: 16px; width: 5px; background-color:#d6d6d6;">&nbsp;</p>
		</td>
		<td style="vertical-align: top; width: 683px; overflow:hidden; border:0; margin:0; padding:0;">&nbsp;
			
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#d6d6d6;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #d6d6d6; overflow:hidden; height: 16px; width: 5px; background-color:#d6d6d6;">&nbsp;</p>
		</td>
	</tr>
	<tr>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 7px; overflow:hidden; height: 30px;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 3px; margin:0; line-height:1.5; color: #ffffff; overflow:hidden">&nbsp;</p>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#d6d6d6;height: 30px;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #d6d6d6; overflow:hidden; height: 30px; width: 5px; background-color:#d6d6d6;">&nbsp;</p>
		</td>
		<td style="vertical-align: top; width: 683px; overflow:hidden; border:0; margin:0; padding:0;height: 30px;background-color:#d6d6d6; text-align:right;">
			<a href="<?php echo $common_lang['admicro_link']; ?>" target="_blank" style="outline:none; padding:0; margin:0; display:block;">	
				<img alt="" src="<?php echo $link['imagepath'] ?>v3/<?php echo trim($langcode); ?>/mot_san_pham_cua_admicro.gif" style="margin:0; padding:0; border:0; outline:none; width: 179px; height: 30px; overflow:hidden;"/>
			</a>
		</td>
		<td style="vertical-align:top; border:0; margin:0; padding:0; width: 5px; overflow:hidden; background-color:#d6d6d6;height:30px;">
			<p style="padding:0;margin:0; text-align:left; font-family: Arial, Helvetica, sans-serif; font-size: 1px; margin:0; line-height:1.5; color: #d6d6d6; overflow:hidden; height: 30px; width: 5px; background-color:#d6d6d6;">&nbsp;</p>
		</td>
	</tr>
</table>